package cn.iune.platform.dictionary;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.persistence.UniqueConstraint;
import javax.persistence.Version;

import com.justep.baas.data.RowState;

@Entity
@Table(name="ExpressInfo",uniqueConstraints={@UniqueConstraint(columnNames={"expressCode"})})
@NamedQuery(name="ExpressInfo.findAll", query="SELECT s FROM ExpressInfo s")
public class ExpressInfo {

	@Id
	@Column(length=32)
	private String fID;
	
	@Column(length=30)
	private String expressCode;
	@Column(length=50)
	private String expressName;
	
	@Column(length=128)
	private String comurl;
	@Column(length=128)
	private String comimgurl;
	@Column(length=128)
	private String apiurl;
	@Column(length=32)
	private String apikey;
	
	@Column(length=128)
	private String phone;
	@Column(length=255)
	private String note;
	
	@Version
	private int version = 0;
	
	@Transient//非持久字段
	private RowState rowState;
	public RowState getRowState() {
		return rowState;
	}
	public void setRowState(RowState rowState) {
		this.rowState = rowState;
	}


	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
	public String getfID() {
		return fID;
	}
	public void setfID(String fID) {
		this.fID = fID;
	}
	public String getExpressCode() {
		return expressCode;
	}
	public void setExpressCode(String expressCode) {
		this.expressCode = expressCode;
	}
	public String getExpressName() {
		return expressName;
	}
	public void setExpressName(String expressName) {
		this.expressName = expressName;
	}
	public String getComurl() {
		return comurl;
	}
	public void setComurl(String comurl) {
		this.comurl = comurl;
	}
	public String getComimgurl() {
		return comimgurl;
	}
	public void setComimgurl(String comimgurl) {
		this.comimgurl = comimgurl;
	}
	public String getApiurl() {
		return apiurl;
	}
	public void setApiurl(String apiurl) {
		this.apiurl = apiurl;
	}
	public String getApikey() {
		return apikey;
	}
	public void setApikey(String apikey) {
		this.apikey = apikey;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getNote() {
		return note;
	}
	public void setNote(String note) {
		this.note = note;
	}

	
}
